package com.api.gbhg.daiyanlu.DataPrintCopyUtil;

import java.text.DecimalFormat;

public class FormatUtil {
    private static DecimalFormat df = new DecimalFormat("#0.0000");

    public static String DmFormat(double number){
        if (number >= 0)
            return df.format(number);
        else
            return df.format(0);
    }
}
